<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<article th:fragment="carousel" style="border-radius: 20px">
    <div id="gcarouse" class="container" style="border-radius: 20px">
        <!--轮播-->
        <div id="myCarousel" class="carousel slide" style="border-radius: 20px">
            <!-- 轮播（Carousel）指标 -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>
            <!-- 轮播（Carousel）项目 -->
            <div class="carousel-inner" style="border-radius: 20px">
                <div class="item active" style="border-radius: 20px">
                    <a href="books_list.html" th:href="@{/book/bookList(category=1)}"><img src="/images/ad1.png" th:src="@{/images/ad1.png}" class="pull-left" alt="First slide"></a>

                </div>
                <div class="item" style="border-radius: 20px">
                    <a href="books_list.html" th:href="@{/book/bookList(category=2)}"><img src="/images/ad2.png" th:src="@{/images/ad2.png}" class="pull-left" alt="First slide"></a>

                </div>
                <div class="item" style="border-radius: 20px">
                    <a href="books_list.html" th:href="@{/book/bookList(category=3)}"><img src="/images/ad3.png" th:src="@{/images/ad3.png}" class="pull-left" alt="First slide"></a>

                </div>
            </div>

            <!-- 轮播（Carousel）导航 -->
            <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
            <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
        </div>
    </div>
</article>
